<!--{include(pe_tpl('header.html'));}-->
<div class="right_page divhide">
	<div class="index_box">
		<div class="dcl_ul">
			<div class="dcl_li">
				<div class="dcl_img1"><i></i></div>
				<div class="dcl_info">
					<a href="admin.php?mod=order&state=wpay" target="_blank"><p>{$tongji['order_wpay']}</p>待付款订单</a>
				</div>
			</div>
			<div class="dcl_li">
				<div class="dcl_img2"><i></i></div>
				<div class="dcl_info">
					<a href="admin.php?mod=order&state=wsend" target="_blank"><p>{$tongji['order_wsend']}</p>待发货订单</a>
				</div>
			</div>
			<div class="dcl_li">
				<div class="dcl_img3"><i></i></div>
				<div class="dcl_info">
					<a href="admin.php?mod=refund&state=wcheck" target="_blank"><p>{$tongji['refund_wcheck']}</p>待审退款/货</a>
				</div>
			</div>
			<div class="dcl_li">
				<div class="dcl_img4"><i></i></div>
				<div class="dcl_info">
					<a href="admin.php?mod=cashout" target="_blank"><p>{$tongji['cashout_js']}</p>待结算提现</a>
				</div>
			</div>	
			<div class="clear"></div>
		</div>
		<div class="notice">
			<iframe src="http://www.phpshe.com/api/shop?type=news&v={$ini['phpshe']['version']}" frameborder="0" width="100%" height="352px"></iframe>
		</div>
	</div>
	<div class="index_box">
		<div class="tj_box">			
			<div class="tj_tt"><span>数据统计</span></div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tj_table">
			<tr>
				<td class="right c888" width="80">商品总数：</td>
				<td><a href="admin.php?mod=product" target="_blank">{$tongji['product_num']} <span>个</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">分类总数：</td>
				<td><a href="admin.php?mod=category" target="_blank">{$tongji['category_num']} <span>个</span></a></td>
			</tr>
			<tr>
				<td class="right c888">品牌总数：</td>
				<td><a href="admin.php?mod=brand" target="_blank">{$tongji['brand_num']} <span>个</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">评价总数：</td>
				<td><a href="admin.php?mod=comment" target="_blank">{$tongji['comment_num']} <span>个</span></a></td>
			</tr>
			<tr>
				<td class="right c888">会员总数：</td>
				<td><a href="admin.php?mod=user" target="_blank">{$tongji['user_num']} <span>人</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">访客总数：</span></td>
				<td><a href="admin.php?mod=tongji" target="_blank">{$tongji['iplog_num']} <span>人</span></a></td>
			</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tj_table">
			<tr>
				<td class="right c888" width="80">订单总数：</td>
				<td><a href="admin.php?mod=order" target="_blank">{$tongji['order_num']} <span>笔</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">退款总数：</td>
				<td><a href="admin.php?mod=refund" target="_blank">{$tongji['refund_num']} <span>笔</span></a></td>
			</tr>
			<tr>
				<td class="right c888">收款总数：</td>
				<td><a href="admin.php?mod=pay&state=success" target="_blank">{$tongji['pay_num']} <span>笔</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">提现总数：</td>
				<td><a href="admin.php?mod=cashout" target="_blank">{$tongji['cashout_num']} <span>笔</span></a></td>
			</tr>
			<tr>
				<td class="right c888">钱包总额：</td>
				<td><a href="admin.php?mod=moneylog" target="_blank">{$tongji['user_money']} <span>元</span></a></td>
			</tr>
			<tr style="background:#f6f7fc">
				<td class="right c888">积分总数：</td>
				<td><a href="admin.php?mod=pointlog" target="_blank">{$tongji['user_point']} <span>个</span></a></td>
			</tr>
			</table>
			<div class="clear"></div>
		</div>
		<div class="xt_box">
			<div class="tj_tt"><span>系统信息</span></div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="xt_table">
			<tr>
				<td class="right c888" width="70">当前版本：</td>
				<td style="border-top:0"><a href="http://www.phpshe.com" target="_blank">PHPSHE{$ini['phpshe']['version']}免费版</a></td>
			</tr>
			<tr>
				<td class="right c888">授权编号：</td>
				<td style="border-top:0"><a href="http://www.phpshe.com/phpshe/license" target="_blank" id="license_num">未授权</a></td>
			</tr>
			<tr>
				<td class="right c888">购买授权：</td>
				<td>
					<a href="http://wpa.qq.com/msgrd?v=3&uin=76265959&site=qq&menu=yes" target="_blank" class="fl mat10">
						<img border="0" src="{$pe['host_tpl']}image/qq.png" alt="咨询客服" title="咨询客服"/>
					</a>
					<div class="clear"></div>
				</td>
			</tr>
			<tr>
				<td class="right c888">咨询热线：</td>
				<td>15839823500</td>
			</tr>
			<tr>
				<td class="right c888">官方网站：</td>
				<td><a class="cblue" href="http://www.phpshe.com" target="_blank">www.phpshe.com</a></td>
			</tr>
			<tr>
				<td class="right c888">操作系统：</td>
				<td>{$php_os} {$php_apache}</td>
			</tr>
			<tr>
				<td class="right c888">运行环境：</td>
				<td>
					<a href="admin.php?mod=index&act=phpinfo" target="_blank" class="tag_blue">{$php_version}</a>
					<a href="admin.php?mod=index&act=phpinfo" target="_blank" class="tag_blue">{$mysql_version}</a>
				</td>
			</tr>
			</table>
		</div>
	</div>
	<div class="index2_box">
		<div class="tx_box" style="margin-right:7.5px;">
			<div class="tj_tt"><span>交易统计</span></div>
			<ul class="tx_ul">
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['pay_today']}</h3>
					<div class="mat5">今日收款(笔)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['order_today']}</h3>
					<div class="mat5">今日订单(笔)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['refund_today']}</h3>
					<div class="mat5">今日退款(笔)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['pay_lastday']}</h3>
					<div class="mat5">昨日收款(笔)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['order_lastday']}</h3>
					<div class="mat5">昨日订单(笔)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['refund_lastday']}</h3>
					<div class="mat5">昨日退款(笔)</div>
				</div>
			</li>
			</ul>
			<div class="clear"></div>
			<div id="pay_chart" style="height:280px;margin-top:15px;"></div>
		</div>
	</div>
	<div class="index2_box" style="float:right">
		<div class="tx_box" style="margin-left:7.5px;">
			<div class="tj_tt"><span>流量统计</span></div>	
			<ul class="tx_ul">
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['iplog_today']}</h3>
					<div class="mat5">今日访客(人)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['user_today']}</h3>
					<div class="mat5">今日注册(人)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['sign_today']}</h3>
					<div class="mat5">今日签到(人)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['iplog_lastday']}</h3>
					<div class="mat5">昨日访客(人)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['user_lastday']}</h3>
					<div class="mat5">昨日注册(人)</div>
				</div>
			</li>
			<li class="shop_ico3">
				<div class="padd10">
					<h3>{$tongji['sign_lastday']}</h3>
					<div class="mat5">昨日签到(人)</div>
				</div>
			</li>
			</ul>
			<div class="clear"></div>
			<div id="iplog_chart" style="height:280px;margin-top:15px;"></div>
		</div>
	</div>
	<div class="clear"></div>
	<div style="height:20px"></div>
</div>
<script type="text/javascript" src="{$pe['host']}include/js/echarts.min.js"></script>
<script type="text/javascript">
$(function(){
	$.getJSON("//www.phpshe.com/index.php?mod=api&act=license&version={$ini['phpshe']['version']}&callback=?", function(json){
		if (json.code == 1) $("#license_num").html(json.license_num);
	})
	setTimeout(function(){
		$(".right_page").removeClass("divhide")
	}, 100)
})
var pay_chart = echarts.init(document.getElementById('pay_chart'));
// 指定图表的配置项和数据
var option = {
    tooltip: {
        trigger: 'axis'
    },
  	legend: {
        data: ['每日收款额']
    },
    grid: {
    	top: '40px',
        left: '30px',
        right: '10px',
        bottom: '25px'
    },
    xAxis: {
        type: 'category',
        data: ['{implode("','", $pay_x)}']
    },
    yAxis: {
        type: 'value',
        minInterval: 100,
    },
    series: [{
        name:'每日收款额',
        type:'bar',
        //stack: '总量',
        data:['{implode("','", $pay_y)}'],
        showBackground: true,
		areaStyle: {
			normal: {
				color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
					offset: 0,
					color: 'rgba(30, 144, 255,0.5)'
				}, {
					offset: 1,
					color: 'rgba(30, 144, 255,0.8)'
				}], false)
			}
		},
		itemStyle: {
			normal: {
				color: '#52a9ff'
			}
		}
    }]
};
//使用刚指定的配置项和数据显示图表。
pay_chart.setOption(option);
setTimeout(function(){
	pay_chart.resize();
}, 100);

var iplog_chart = echarts.init(document.getElementById('iplog_chart'));
// 指定图表的配置项和数据
var option = {
    tooltip: {
        trigger: 'axis'
    },
  	legend: {
        data: ['每日访客数']
    },
    grid: {
    	top: '40px',
        left: '30px',
        right: '10px',
        bottom: '25px'
    },
    xAxis: {
        type: 'category',
        data: ['{implode("','", $iplog_x)}']
    },
    yAxis: {
        type: 'value',
        minInterval: 10,
    },
    series: [{
        name:'每日访客数',
        type:'bar',
        //stack: '总量',
        data:['{implode("','", $iplog_y)}'],
        showBackground: true,
		areaStyle: {
			normal: {
				color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
					offset: 0,
					color: 'rgba(30, 144, 255,0.5)'
				}, {
					offset: 1,
					color: 'rgba(30, 144, 255,0.8)'
				}], false)
			}
		},
		itemStyle: {
			normal: {
				color: '#52a9ff'
			}
		}
    }]
};
//使用刚指定的配置项和数据显示图表。
iplog_chart.setOption(option);
setTimeout(function(){
	iplog_chart.resize();
}, 100);
</script>
<style type="text/css">
.index_box{ position:relative; margin-top:15px;}
.dcl_ul{margin-right:285px; background:#fff; box-shadow:0 8px 12px #ebedf0;}
.dcl_li{float:left; width:25%; position:relative; background:#fff; height:90px;}
.dcl_info{margin:10px 0 10px 80px; font-size:14px; text-align:center;}
.dcl_info a{display:block;}
.dcl_info p{margin:20px 0 10px; font-size:22px;}
.dcl_img1{background:#FFB800; width:70px; height:70px;position:absolute; left:10px; top:10px; border-radius:6px;}
.dcl_img1 i{background:url({$pe['host_tpl']}image/index_ico.png) no-repeat; width:40px; height:40px; display:block; margin:0 auto; margin-top:18px;}
.dcl_img2{background:#32d65d; width:70px; height:70px;position:absolute; left:10px; top:10px;border-radius:6px;}
.dcl_img2 i{background:url({$pe['host_tpl']}image/index_ico.png) no-repeat 0 -50px; width:40px; height:40px; display:block; margin:0 auto; margin-top:18px;}
.dcl_img3{background:#01AAED; width:70px; height:70px;position:absolute; left:10px; top:10px;border-radius:6px;}
.dcl_img3 i{background:url({$pe['host_tpl']}image/index_ico.png) no-repeat 0 -104px; width:40px; height:40px; display:block; margin:0 auto; margin-top:16px;}
.dcl_img4{background:#FF5722; width:70px; height:70px;position:absolute; left:10px; top:10px;border-radius:6px;}
.dcl_img4 i{background:url({$pe['host_tpl']}image/index_ico.png) no-repeat 0 -160px; width:40px; height:40px; display:block; margin:0 auto; margin-top:16px;}
.notice{background:#fff; padding:5px 10px 0; box-shadow:0 8px 12px #ebedf0; width:250px; position:absolute; right:0; top:0; height:85px; overflow:hidden;}

.tj_box{background:#fff; padding:0 10px 10px; box-shadow:0 8px 12px #ebedf0; margin-right:285px;}
.tj_tt{padding:12px 0 12px 5px; font-size:14px; border-bottom:1px #eee solid; color:#333}
.tj_tt span{border-left:3px #666 solid; padding-left:12px; display:block; height:14px; line-height:14px;}
.tj_table{float:left; width:50%;}
.tj_table td{border:0; height:34px; line-height:34px; color:#333; font-size:13px; padding:4px;}
.tj_table td span{color:#888;}
.xt_box{background:#fff; padding:0 10px; box-shadow:0 8px 12px #ebedf0; width:250px; position:absolute; right:0; top:0; height:301px; overflow:hidden;}
.xt_table{margin-top:5px}
.xt_table td{height:34px; line-height:34px; font-size:13px;  padding:0}

.index2_box{margin-top:15px; width:50%; float:left; box-shadow:0 8px 12px #ebedf0;}
.tx_box{padding:0 10px 10px; background:#fff;}
.tx_ul{margin-top:10px;}
.tx_ul li{float:left; width:33.33%; font-size:13px; background:#f6f7fc;}
.tx_ul li h3{font-size:22px; line-height:22px; font-weight:normal}
.tx_ul li .padd10{text-align:center;padding:20px 0; border:2px solid #fff}
</style>
<!--{include(pe_tpl('footer.html'));}-->